package com.kingyea.mobilepolice.apimanage.camel;

import com.kingyea.camel.runtime.Service;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.ConfigurableApplicationContext;

//@EnableWebMvc
@SpringBootApplication
/** KingyeaCamel 在springboot下的启动方式 */
public class KingyeaCamelApplication {

	public static Service service;

	public static void main(String[] args) throws Exception{
		ConfigurableApplicationContext context = SpringApplication.run(KingyeaCamelApplication.class, args);



//        final CamelSpringBootApplicationController controller = context.getBean(CamelSpringBootApplicationController.class);
//        controller.run();

//		KingyeaCamelThread thread = new KingyeaCamelThread(context,"D:\\A\\get_ftp_file.xml");
//		thread.start();
//		KingyeaCamelThread thread1 = new KingyeaCamelThread(context,"D:\\A\\get_ftp_file.xml");
//		thread1.start();
//		KingyeaCamelThread thread2 = new KingyeaCamelThread(context,"D:\\A\\get_ftp_file.xml");
//		thread2.start();
//		KingyeaCamelThread thread3 = new KingyeaCamelThread(context,"D:\\A\\get_ftp_file.xml");
//		thread3.start();
//		KingyeaCamelThread thread4 = new KingyeaCamelThread(context,"D:\\A\\get_ftp_file.xml");
//		thread4.start();


	}


}
